﻿@{
    ViewBag.Title = "Add Home";
}

  <div class="col-lg-9 col-sm-9 right_part">
          <div class="done-page personalization-page">
            
                @*Header not show in case of Android App. *@
             @if (Session[HomeCareLibrary.Constants.SessionConstants.MODE] == null || Session[HomeCareLibrary.Constants.SessionConstants.MODE].ToString() == HomeCareLibrary.Constants.ApplicationModeConstants.IPHONE_APP || Session[HomeCareLibrary.Constants.SessionConstants.MODE].ToString() == HomeCareLibrary.Constants.ApplicationModeConstants.IPAD_APP)
               {
              <div class="title clearfix">
              <h1>personalization</h1>
              <div class="top-btn-per clearfix">
                      <div id="back-button" class="back-button"><a href="javascript:void(0);"><img class="back-btn" alt="back-btn" src="@Url.Content("~/images/personalization-images/back-btn.png")"> 
                      <div class="back-mob-btn"><span class="glyphicon glyphicon-chevron-left"></span> Back</div>
                        </a></div>
              </div>
            </div>
             }

                @{var androidContent = string.Empty;
                  if (Session[HomeCareLibrary.Constants.SessionConstants.MODE] == null || Session[HomeCareLibrary.Constants.SessionConstants.MODE].ToString() == HomeCareLibrary.Constants.ApplicationModeConstants.IPHONE_APP || Session[HomeCareLibrary.Constants.SessionConstants.MODE].ToString() == HomeCareLibrary.Constants.ApplicationModeConstants.IPAD_APP)
                 {
                     androidContent = "class= personalization-content";
                 }
                  else
                  {
                      androidContent = "";
                  }
                     }


            <div class="main-content">
              <div @androidContent>
                <div class="personalization-bg">
                  <div class="personalization-inn">
                    <div class="personalization-data addhome-data">
                         @{
            var sessionValue = "";
            if (Session[HomeCareLibrary.Constants.SessionConstants.MODE] != null)
            {
                sessionValue = Session[HomeCareLibrary.Constants.SessionConstants.MODE].ToString();
            }
            else
            {
                sessionValue = "";
            }
            <input type="hidden" value="@sessionValue" id="hdnSessionValue" />
        }
                            <h3 class="personalization-heading">Add Another Home</h3>
                            <p class="top-data">You can add additional homes (a vacation home, or where your relatives live, etc.)</p>
                            <br>
                            <br>
                            <div style="height:60px;"></div>
                            <div class="button">
                               <a class="btn-per" href="@Url.Action("PersonalizationAddHome","Personalization")">Personalize</a>
                                  
                                 <br />

                     Session Ids with values:
                      @if (ViewBag.sessionIds != string.Empty)
                   {
                      @ViewBag.sessionIds
                   } <br /><br />

                           <span>
                 Session:
                    @if (ViewBag.getSession != string.Empty)
                   {
                      @ViewBag.getSession
                   }
                      </span>
                         <br /><br />
                    JSON:
                   @if (ViewBag.JsonString != string.Empty)
                   {
                       <h4>@ViewBag.JsonString</h4>
                   }
                      <br /><br />
                         <span style="margin-left:10px;">
                  Request Content-Type:
                    @if (ViewBag.ContentType != string.Empty)
                   {
                      @ViewBag.ContentType
                   }
                      </span>

                      <br /><br />
                         <span style="margin-left:10px;">
                  Request URL:
                    @if (ViewBag.Url != string.Empty)
                   {
                      @ViewBag.Url
                   }
                      </span>

                            </div>
                          </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          </div>
@section script {

   <script src="@Url.Content("~/js/iPhone/IPhoneExtras.js")"></script>
    }